package com.ctgu.j08.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.j08.vo.Allocate;
import com.ctgu.j08.vo.BuyList;
import com.ctgu.j08.vo.Result;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author: Saiya Wang
 * @date: 2021/6/2 19:33
 */
@Service
public interface AllocateService extends IService<Allocate> {

    /**
     * 修改分发信息
     * @param allocate
     * @return
     */
    public Result editAllocate(Allocate allocate);

    /**
     * 添加分发信息
     * @param allocate
     * @return
     */
    public Result addAllocate(Allocate allocate);

    /**
     * 获取所有分发信息
     * @return
     */
    public Result getAllAllocateInfo();

    /**
     * 通过id删除分发记录 同时改相关设备变为未分发
     * @param aId
     * @return
     */
    public Result delAllocate(Integer aId);
}
